package cn.pomit.aliwork.dubbo.web;

import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import cn.pomit.aliwork.dubbo.model.ResultModel;
import cn.pomit.aliwork.dubbo.service.IpInfoService;

@RestController
@RequestMapping("/ipInfo")
public class DubboServerRest {
	@Reference
	IpInfoService ipInfoService;
	@RequestMapping(value = "/ip", method = { RequestMethod.GET })
	public ResultModel welCome() {
		return ipInfoService.getIpInfo();
	}
	
}
